#region Summary

// 
// Owner : JackieHan 
// 
// Solution : DailyCollection 
// 
// Project : Jackie.Utility.Notify
// 
// File : ClientSubscribeInfo.cs
// 
// CopyRight : Copyright © 2010-2011 Skomart Corporation, All Rights Reserved 
// 
// Summary : 客户端订阅信息
// 
// History : 
//			2011-04-26 17:04:55	    Create 
// 

#endregion

#region Using

using System;
using System.Collections.Generic;
using System.Text;
using Jackie.Utility.Notify.Service;

#endregion

namespace Jackie.Utility.Notify.Domain
{
    /// <summary> 
    /// 客户端订阅信息
    /// </summary>
    public class ClientSubscribeInfo
    {
        /// <summary>
        /// 客户端标识
        /// </summary>
        public string ClientSign { get; set; }

        /// <summary>
        /// 订阅的消息标题
        /// </summary>
        public TitleInfo Title { get; set; }

        /// <summary>
        /// 回调实现
        /// </summary>
        public IReceivedMessage CallbackInstance { get; set; }

        public override string ToString()
        {
            var builder = new StringBuilder();
            builder.Append("ClientSubscribeInfo:{");
            builder.AppendFormat("ClientSign:{0},Title:{1}", ClientSign, Title);
            builder.Append("}");
            return builder.ToString();
        }
    }
}